package com.jthinker.service;

import com.jthinker.bean.vo.QueryResult;
import com.jthinker.bean.vo.SearchFilter;

import java.io.Serializable;
import java.util.Map;

/**
 * User: Gang Chen
 * Date: 2015/4/13 21:47
 */
public interface PostService
{
    Map<String, Object> read(Serializable id);

    QueryResult<Map<String, Object>> queryList(SearchFilter filter);

    QueryResult<Map<String, Object>> queryGrid(SearchFilter filter);

    void create(Map<String, Object> post) throws Exception;

    void update(Map<String, Object> post, Serializable id) throws Exception;

    void delete(String id);
}
